var role = require("./role");
var BusCon = require("../../core/bus/_con");
var classify_rest = require("./classify.rest_factory")(function(app) {
	var bus_id = app.request.query.bus_id;
	var bus = BusCon.get(bus_id);
	if (!bus) {
		throwCusError("找不到指定商家")
	}
	return bus;
}, "/classify");
//保留get、移除其它
delete classify_rest.post
delete classify_rest.put
delete classify_rest.delete
module.exports = classify_rest;